package com.logos.ruralrevitalization.converter;

import com.logos.ruralrevitalization.entity.AgriculturalProduct;
import com.logos.ruralrevitalization.entity.AuthUser;
import com.logos.ruralrevitalization.req.AgriculturalProductReq;
import com.logos.ruralrevitalization.req.AuthUserReq;
import com.logos.ruralrevitalization.req.chat.AgriculturalProductQuery;
import com.logos.ruralrevitalization.resp.AgriculturalProductResp;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface AgriculturalProductConverter {

    AgriculturalProductConverter INSTANCE = Mappers.getMapper(AgriculturalProductConverter.class);

    AgriculturalProduct convertReqToEntity(AgriculturalProductReq agriculturalProductReq);

    AgriculturalProductResp convertEntityToResp(AgriculturalProduct agriculturalProduct);

    AgriculturalProduct convertQueryToEntity(AgriculturalProductQuery query);
}